#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <algo.h>
#include <iostream.h>

#ifdef MAIN
#define remcpif1_test main
#endif
static bool odd(int a_)
{
  return a_ % 2;
}
#endif
int remcpif1_test(int, char**)
{
  cout<<"Results of remcpif1_test:"<<endl;

#ifndef ACORN_CFRONT
int numbers[6] = { 1, 2, 3, 1, 2, 3 };
int result[6] = { 0, 0, 0, 0, 0, 0 };
#else
static int numbers[6] = { 1, 2, 3, 1, 2, 3 };
static int result[6] = { 0, 0, 0, 0, 0, 0 };
#endif

  remove_copy_if(numbers, numbers + 6, result, odd);
  for(int i = 0; i < 6; i++)
    cout << result[i] << ' ';
  cout << endl;
  return 0;
}
